// Copyright (c) 2024-present AI-Labs

// @ ts-nocheck
import { EditorEvents } from "@tiptap/core";
import { UAIEditorOptions } from "@/types/index";

/**
 * 定义全局编辑器监听接口
 */
export interface UAIEditorEventListener {
    onCreate: (event: EditorEvents['create'], options: UAIEditorOptions) => void;
    onTransaction: (event: EditorEvents['transaction'], options: UAIEditorOptions) => void;
    onEditableChange: (editable: boolean) => void;
}
